<?php
namespace Common\Model;
use Common\Common\Object;

/**
 * Class CustomerObject
 * @package Common\Model
 * @property string $id
 * @property string $username
 * @property string $password
 *
 */
class jobhunterObject extends Object{
    public function fetchresume(){
        /** @var resume $resume */
        $resume = D('resume');
        return $resume->fetchList(['user_id'=>$this->id]);
    }
    /**
     * 校验密码是否正确
     * @param $value
     * @return bool
     */
    public function checkPassword($value){
        return $value == $this->data['passwords'];
    }

}